package com.cheejee.goodscenter.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cheejee.goodscenter.module.entity.Category;
import com.cheejee.goodscenter.module.entity.GoodsCustomProperties;

@Mapper
public interface GoodsCustomPropertiesMapper {

	int deleteByPrimaryKey(Long id);

//	int insert(GoodsCustomProperties record);

	int insertSelective(GoodsCustomProperties record);

	GoodsCustomProperties selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(GoodsCustomProperties record);

//	int updateByPrimaryKey(GoodsCustomProperties record);

	// ################ 以上为mybatis generator生成 #####################

	List<Category> selectBySelective(@Param("goodsId") Long goodsId, @Param("propertiesName") String propertiesName);

	int deleteById(@Param("id") Long... id);

	/**
	 *
	 * @param properties
	 * @return
	 */
	int insertMany(@Param("properties") List<GoodsCustomProperties> properties);

	/**
	 *
	 * @param goodsId
	 */
	int deleteByGoodsId(@Param("goodsId")Long goodsId);
}